package drds.server.memory.unsafe.row;

import java.util.Map;

import com.sun.istack.internal.NotNull;

import drds.server.execute_engine.data_handling.Column;
import drds.server.execute_engine.data_handling.OrderByColum;

/**
 * Created by zagnix on 2016/6/6.
 */
public class StructType {

	private final Map<String, Column> columToIndx;
	private final int fieldCount;

	private OrderByColum[] orderCols = null;

	public StructType(@NotNull Map<String, Column> columToIndx, int fieldCount) {
		assert fieldCount >= 0;
		this.columToIndx = columToIndx;
		this.fieldCount = fieldCount;
	}

	public int length() {
		return fieldCount;
	}

	public Map<String, Column> getColumToIndx() {
		return columToIndx;
	}

	public OrderByColum[] getOrderCols() {
		return orderCols;
	}

	public void setOrderCols(OrderByColum[] orderCols) {
		this.orderCols = orderCols;
	}

	public long apply(int i) {
		return 0;
	}
}
